package com.bkgy.controller.processParam.controller;


import com.bkgy.controller.processParam.dto.ProcessParamDto;
import com.bkgy.controller.processParam.service.ProcessParamService;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/processParam")
public class ProcessParamController {

    @Autowired
    private ProcessParamService processParamService;

    @Operation(summary = "查询数据", description = "查询1870镀锌最新5卷数据")
    @PostMapping("/fetchData")
    public ProcessParamDto fetchData() {
        return processParamService.fetchData();
    }

}
